package main

import (
	"flag"
	"fmt"

	"iss-tools/logo"
)

// mac /Users/xishengcai/soft/openGauss-server
var dir = flag.String("dir", "openGauss-server", "database root dir")
var repGS = flag.String("replace_gs_", "is_", "default replace gs_ to is_, "+
	"if you want replace to other charts, please pass argument --replace_gs_=xxx_")
var help = flag.Bool("h", false, "tips")

func main() {
	flag.Parse()
	helpInfo := "	--dir								" +
		"pass openGauss-server directory, example --dir=/root/openGauss-server\n" +
		"	--replace_gs_		" +
		"pass you want replaced charts, example --replace_gs_=is_, this will replace ^gs_ and [^a-zA-Z]gs_ \n"

	if *help {
		fmt.Print(helpInfo)
		return
	}

	logo.ChangeGsFile(*dir, *repGS)
}
